# Django settings for connectpeople project.
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS


DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'postgresql_psycopg2',    #'sqlite3',# 'django.db.backends.', 'mysql', 
                                           # 'sqlite3' or 'oracle'.
                                           
        'NAME': 'connectpeople',                    # Or path to database file if using sqlite3.
        'USER': 'aashish',                        # Not used with sqlite3.
        'PASSWORD': 'aashish',                    # Not used with sqlite3.
        'HOST': '',                        # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                        # Set to empty string for default. Not used with sqlite3.
    }
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/home/aashish/code/connectpeople/media/'

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = 'site_media/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = '+o$=7-6h_qpz^7q2suu#q)@_mz*6&$xm@wca_m0*@+r50c50x7'

# Session Expire on browser close
SESSION_EXPIRE_AT_BROWSER_CLOSE = True

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
#     'django.template.loaders.eggs.Loader',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    #'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    
)

ROOT_URLCONF = 'connectpeople.urls'

TEMPLATE_DIRS = (
    '/home/ashish/code/connectpeople/templates',
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)



INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.admin',
    'connectpeople.polls',
    'connectpeople.utils',
    'registration',
    'connectpeople.contifyuser',
    'connectpeople.StartGroup',
    'connectpeople.groupevents',
    'connectpeople.discussions',
    'connectpeople.utils',
    'connectpeople.groupInfo',
    'connectpeople.groupMembers',
)


TEMPLATE_CONTEXT_PROCESSORS += (
        "contifyuser.context_processors.media_url",
)

#Number of days for which the account will be active.
ACCOUNT_ACTIVATION_DAYS = 10

# Default number of choices for poll app
NO_OF_CHOICES = 2

#Sending mail Settings
DEFAULT_FROM_EMAIL = "aashish.kumar@contify.com"
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'aashish.kumar@contify.com'
EMAIL_HOST_PASSWORD = 'rajnish004'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_SUBJECT_PREFIX = ""
EMAIL_DEFAULT_SIGNATURE = "\n--\nContify Admin(Aashish)"

# List of countries
COUNTRIES = (

    ('AF', (u'Afghanistan')), ('AX', (u'\xc5land Islands')), ('AL', (u'Albania')), ('DZ', (u'Algeria')), ('AS', (u'American Samoa')), ('AD', (u'Andorra')), ('AO', (u'Angola')), ('AI', (u'Anguilla')), ('AQ', (u'Antarctica')), ('AG', (u'Antigua and Barbuda')), ('AR', (u'Argentina')), ('AM', (u'Armenia')), ('AW', (u'Aruba')), ('AU', (u'Australia')), ('AT', (u'Austria')), ('AZ', (u'Azerbaijan')), ('BS', (u'Bahamas')), ('BH', (u'Bahrain')), ('BD', (u'Bangladesh')), ('BB', (u'Barbados')), ('BY', (u'Belarus')), ('BE', (u'Belgium')), ('BZ', (u'Belize')), ('BJ', (u'Benin')), ('BM', (u'Bermuda')), ('BT', (u'Bhutan')), ('BO', (u'Bolivia, Plurinational State of')), ('BA', (u'Bosnia and Herzegovina')), ('BW', (u'Botswana')), ('BV', (u'Bouvet Island')), ('BR', (u'Brazil')), ('IO', (u'British Indian Ocean Territory')), ('BN', (u'Brunei Darussalam')), ('BG', (u'Bulgaria')), ('BF', (u'Burkina Faso')), ('BI', (u'Burundi')), ('KH', (u'Cambodia')), ('CM', (u'Cameroon')), ('CA', (u'Canada')), ('CV', (u'Cape Verde')), ('KY', (u'Cayman Islands')), ('CF', (u'Central African Republic')), ('TD', (u'Chad')), ('CL', (u'Chile')), ('CN', (u'China')), ('CX', (u'Christmas Island')), ('CC', (u'Cocos (Keeling) Islands')), ('CO', (u'Colombia')), ('KM', (u'Comoros')), ('CG', (u'Congo')), ('CD', (u'Congo, The Democratic Republic of the')), ('CK', (u'Cook Islands')), ('CR', (u'Costa Rica')), ('CI', (u"C\xf4te D'ivoire")), ('HR', (u'Croatia')), ('CU', (u'Cuba')), ('CY', (u'Cyprus')), ('CZ', (u'Czech Republic')), ('DK', (u'Denmark')), ('DJ', (u'Djibouti')), ('DM', (u'Dominica')), ('DO', (u'Dominican Republic')), ('EC', (u'Ecuador')), ('EG', (u'Egypt')), ('SV', (u'El Salvador')), ('GQ', (u'Equatorial Guinea')), ('ER', (u'Eritrea')), ('EE', (u'Estonia')), ('ET', (u'Ethiopia')), ('FK', (u'Falkland Islands (Malvinas)')), ('FO', (u'Faroe Islands')), ('FJ', (u'Fiji')), ('FI', (u'Finland')), ('FR', (u'France')), ('GF', (u'French Guiana')), ('PF', (u'French Polynesia')), ('TF', (u'French Southern Territories')), ('GA', (u'Gabon')), ('GM', (u'Gambia')), ('GE', (u'Georgia')), ('DE', (u'Germany')), ('GH', (u'Ghana')), ('GI', (u'Gibraltar')), ('GR', (u'Greece')), ('GL', (u'Greenland')), ('GD', (u'Grenada')), ('GP', (u'Guadeloupe')), ('GU', (u'Guam')), ('GT', (u'Guatemala')), ('GG', (u'Guernsey')), ('GN', (u'Guinea')), ('GW', (u'Guinea-bissau')), ('GY', (u'Guyana')), ('HT', (u'Haiti')), ('HM', (u'Heard Island and McDonald? Islands')), ('VA', (u'Holy See (Vatican City State)')), ('HN', (u'Honduras')), ('HK', (u'Hong Kong')), ('HU', (u'Hungary')), ('IS', (u'Iceland')), ('IN', (u'India')), ('ID', (u'Indonesia')), ('IR', (u'Iran, Islamic Republic of')), ('IQ', (u'Iraq')), ('IE', (u'Ireland')), ('IM', (u'Isle of Man')), ('IL', (u'Israel')), ('IT', (u'Italy')), ('JM', (u'Jamaica')), ('JP', (u'Japan')), ('JE', (u'Jersey')), ('JO', (u'Jordan')), ('KZ', (u'Kazakhstan')), ('KE', (u'Kenya')), ('KI', (u'Kiribati')), ('KP', (u"Korea, Democratic People's Republic of")), ('KR', (u'Korea, Republic of')), ('KW', (u'Kuwait')), ('KG', (u'Kyrgyzstan')), ('LA', (u"Lao People's Democratic Republic")), ('LV', (u'Latvia')), ('LB', (u'Lebanon')), ('LS', (u'Lesotho')), ('LR', (u'Liberia')), ('LY', (u'Libyan Arab Jamahiriya')), ('LI', (u'Liechtenstein')), ('LT', (u'Lithuania')), ('LU', (u'Luxembourg')), ('MO', (u'Macao')), ('MK', (u'Macedonia, The Former Yugoslav Republic of')), ('MG', (u'Madagascar')), ('MW', (u'Malawi')), ('MY', (u'Malaysia')), ('MV', (u'Maldives')), ('ML', (u'Mali')), ('MT', (u'Malta')), ('MH', (u'Marshall Islands')), ('MQ', (u'Martinique')), ('MR', (u'Mauritania')), ('MU', (u'Mauritius')), ('YT', (u'Mayotte')), ('MX', (u'Mexico')), ('FM', (u'Micronesia, Federated States of')), ('MD', (u'Moldova, Republic of')), ('MC', (u'Monaco')), ('MN', (u'Mongolia')), ('ME', (u'Montenegro')), ('MS', (u'Montserrat')), ('MA', (u'Morocco')), ('MZ', (u'Mozambique')), ('MM', (u'Myanmar')), ('NA', (u'Namibia')), ('NR', (u'Nauru')), ('NP', (u'Nepal')), ('NL', (u'Netherlands')), ('AN', (u'Netherlands Antilles')), ('NC', (u'New Caledonia')), ('NZ', (u'New Zealand')), ('NI', (u'Nicaragua')), ('NE', (u'Niger')), ('NG', (u'Nigeria')), ('NU', (u'Niue')), ('NF', (u'Norfolk Island')), ('MP', (u'Northern Mariana Islands')), ('NO', (u'Norway')), ('OM', (u'Oman')), ('PK', (u'Pakistan')), ('PW', (u'Palau')), ('PS', (u'Palestinian Territory, Occupied')), ('PA', (u'Panama')), ('PG', (u'Papua New Guinea')), ('PY', (u'Paraguay')), ('PE', (u'Peru')), ('PH', (u'Philippines')), ('PN', (u'Pitcairn')), ('PL', (u'Poland')), ('PT', (u'Portugal')), ('PR', (u'Puerto Rico')), ('QA', (u'Qatar')), ('RE', (u'R\xe9union')), ('RO', (u'Romania')), ('RU', (u'Russian Federation')), ('RW', (u'Rwanda')), ('BL', (u'Saint Barth\xe9lemy')), ('SH', (u'Saint Helena')), ('KN', (u'Saint Kitts and Nevis')), ('LC', (u'Saint Lucia')), ('MF', (u'Saint Martin')), ('PM', (u'Saint Pierre and Miquelon')), ('VC', (u'Saint Vincent and the Grenadines')), ('WS', (u'Samoa')), ('SM', (u'San Marino')), ('ST', (u'Sao Tome and Principe')), ('SA', (u'Saudi Arabia')), ('SN', (u'Senegal')), ('RS', (u'Serbia')), ('SC', (u'Seychelles')), ('SL', (u'Sierra Leone')), ('SG', (u'Singapore')), ('SK', (u'Slovakia')), ('SI', (u'Slovenia')), ('SB', (u'Solomon Islands')), ('SO', (u'Somalia')), ('ZA', (u'South Africa')), ('GS', (u'South Georgia and the South Sandwich Islands')), ('ES', (u'Spain')), ('LK', (u'Sri Lanka')), ('SD', (u'Sudan')), ('SR', (u'Suriname')), ('SJ', (u'Svalbard and Jan Mayen')), ('SZ', (u'Swaziland')), ('SE', (u'Sweden')), ('CH', (u'Switzerland')), ('SY', (u'Syrian Arab Republic')), ('TW', (u'Taiwan, Province of China')), ('TJ', (u'Tajikistan')), ('TZ', (u'Tanzania, United Republic of')), ('TH', (u'Thailand')), ('TL', (u'Timor-leste')), ('TG', (u'Togo')), ('TK', (u'Tokelau')), ('TO', (u'Tonga')), ('TT', (u'Trinidad and Tobago')), ('TN', (u'Tunisia')), ('TR', (u'Turkey')), ('TM', (u'Turkmenistan')), ('TC', (u'Turks and Caicos Islands')), ('TV', (u'Tuvalu')), ('UG', (u'Uganda')), ('UA', (u'Ukraine')), ('AE', (u'United Arab Emirates')), ('GB', (u'United Kingdom')), ('US', (u'United States')), ('UM', (u'United States Minor Outlying Islands')), ('UY', (u'Uruguay')), ('UZ', (u'Uzbekistan')), ('VU', (u'Vanuatu')), ('VE', (u'Venezuela, Bolivarian Republic of')), ('VN', (u'Viet Nam')), ('VG', (u'Virgin Islands, British')), ('VI', (u'Virgin Islands, U.s.')), ('WF', (u'Wallis and Futuna')), ('EH', (u'Western Sahara')), ('YE', (u'Yemen')), ('ZM', (u'Zambia')), ('ZW', (u'Zimbabwe')), 

)
